<?php /* Smarty version 2.6.18, created on 2016-12-09 13:01:34
         compiled from personnel/m.personnel.one.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:10px;">
  <form name="myform" action="" method="get">	
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <div class="col-sm-10 text-center">
          <p> <a type="button" class="btn btn-primary" href="index.php?a=personnel.list&appoint_type=1&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
">部门任命列表&nbsp;&nbsp;&nbsp;</a> 
		  <a type="button" class="btn btn-default" href="index.php?a=personnel.list&appoint_type=3&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
">年级长任命列表</a></p>
          <p> <a type="button" class="btn btn-default" href="index.php?a=personnel.list&appoint_type=4&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
">班主任任命列表</a> <a type="button" href="index.php?a=personnel.list&appoint_type=2&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
"class="btn btn-default">教研组任命列表</a></p>
          <p> <a type="button" class="btn btn-default" href="index.php?a=personnel.list&appoint_type=5&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
">备课组任命列表</a> <a type="button" href="index.php?a=personnel.list&appoint_type=6&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" class="btn btn-default">学科组任命列表</a></p>
        </div>
      </div>
    </div>
  </div>
  <div class="row" style="margin-right:10%;">
  </div>
  <!--row  end-->
  
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">部门:</label>
        <div class="col-sm-10">
          <select class="form-control" name="department_id">
			<option value=""> 全部</option>
			<?php $_from = $this->_tpl_vars['department_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
			<option value="<?php echo $this->_tpl_vars['value']['department_id']; ?>
"<?php if ($this->_tpl_vars['value']['department_id'] == $this->_tpl_vars['department_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['department_name']; ?>
</option>
			<?php endforeach; endif; unset($_from); ?>
		  </select> 
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">职位:</label>
        <div class="col-sm-10">
          <select class="form-control" name="position_id">
			<option value=""> 全部</option>
			<?php $_from = $this->_tpl_vars['position_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
			<option value="<?php echo $this->_tpl_vars['value']['position_id']; ?>
"<?php if ($this->_tpl_vars['value']['position_id'] == $this->_tpl_vars['position_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['position_name']; ?>
</option>
			<?php endforeach; endif; unset($_from); ?>
		  </select> 
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance">
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">人员:</label>
        <div class="col-sm-10">
           <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['staff_name']; ?>
"  name="staff_name">
        </div>
      </div>
    </div>
    <div class="col-xs-12 distance">
      <div class="form-group  text-center" style="padding-top:0px;">
	    <input type="hidden" name="a" value="personnel.list">
	    <input type="hidden" name="appoint_staff" value="<?php echo $this->_tpl_vars['appoint_staff']; ?>
">
	    <input type="hidden" name="appoint_type" value="<?php echo $this->_tpl_vars['appoint_type']; ?>
">
        <button type="submit" class="btn btn-success absolutely ">搜索</button>
      </div>
    </div>
  </div>
  </form>	
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
  <?php $_from = $this->_tpl_vars['appoint_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
    <table class="table table-striped table-bordered text-center"  id="middles">
      <tr>
        <td>部门名称</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['department_name']; ?>
</td>
      </tr>
      <tr>
        <td>职务</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['position_name']; ?>
</td>
      </tr>
      <tr>
        <td>姓名</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</td>
      </tr>
    </table>
  <?php endforeach; endif; unset($_from); ?>  
  </div>
</div>
<!--container  end--> 
<!--主体部分  end--> 
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 